package com.snowwolf.user.service;

import com.snowwolf.user.entity.UserEo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

/**
 * @author: topsnowwolf
 * @description:
 * @date: Create in 2019/2/24 10:11
 * @modified by:
 * @versions：0.1.0
 */
@FeignClient(name = "userApi",url = "${usercenter.api.url}")
public interface IUserService {

    @RequestMapping("/get/{id}")
    UserEo findOne(@PathVariable("id") Long id);

    @PostMapping("/list")
    Page<UserEo> findList(@RequestBody Pageable pageable);
}
